package stud.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import stud.aistar.entity.Pay;
import stud.aistar.mapper.PayMapper;
import stud.aistar.service.IPayService;

/**
 * Created by Administrator on 2019/10/11.
 */
@Service
@Transactional
public class PayServiceImpl implements IPayService {

    @Autowired
    private PayMapper payMapper;
    @Override
    public void savePay(Pay pay) {
        payMapper.savePay(pay);
    }

    @Override
    public Pay findByRegId(Integer id) {
        return payMapper.findByRegId(id);
    }
}
